package com.ketai.common;

import javax.servlet.ServletException;

/**
 * @Author:长沙科泰梦想学院
 * @Description:  自定义 全局异常
 * @Date:Create In 2022/7/16 14:04
 **/
public class KetaiException extends ServletException {
    private Integer code;
    private String message;


    public Integer getCode () {
        return code;
    }

    public void setCode (Integer code) {
        this.code = code;
    }

    @Override
    public String getMessage () {
        return message;
    }

    public void setMessage (String message) {
        this.message = message;
    }

    public KetaiException (Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public KetaiException () {
    }
}
